<?php

/**
 * Created by PhpStorm.
 * User: 琳飞
 * Created time 2019/12/11 11:59:56
 * E-mail: admin@eyabc.cn
 */

/**
 * 订单交易状态查询
 */

require 'lib/common.php';

// 订单号
$order = input('order');

// 未支付
$message = ['status' => 0];

// 已支付
if (orderIsPay($order)) {
    $message = ['status' => 1, 'url' => $xwConfig['return'] . '?order=' . $order];
}


echo json_encode($message);